package saas.consumer.service.remote;

import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import saas.consumer.service.remote.interceptor.BzRequestInterceptor;

/**
 * @author guan.xin
 * @title BzFeignClient
 * @description
 * @create 2022-04-25 17:44
 * @since JDK8
 */
@FeignClient(
        value = "${oms4.tp.authorization.baseinfo.service:app-uaac-sit}",
        contextId = "tpAuthorizationClient",
        configuration = BzRequestInterceptor.class
)
public interface BzFeignClient {

    /**
     * 获取全量的TP授权租户店铺信息
     *
     * @return
     */
    @PostMapping("/open/frontend/auth/org/queryAuthOrg")
    JSONObject queryAuthOrg();
}
